package com.xci.sys.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.xci.core.domain.BaseEntity;
import com.xci.core.domain.BaseOperateUserEntity;
import com.xci.core.domain.BaseUserEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 系统报表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "系统报表")
public class SysReport extends BaseEntity {
    /**
     * 报表名称
     */
    @NotBlank(message = "报表名称不能为空")
    @Length(max = 100, message = "报表名称不能超过{max}个字符")
    @Excel(name = "报表名称", width = 30d)
    @ApiModelProperty(value = "报表名称", required = true, position = 2)
    private String name;

    /**
     * 报表编码
     */
    @NotBlank(message = "报表编码不能为空")
    @Length(max = 100, message = "报表编码不能超过{max}个字符")
    @Excel(name = "报表编码", width = 30d)
    @ApiModelProperty(value = "报表编码", required = true, position = 3)
    private String code;

    /**
     * 接口地址
     */
    @Length(max = 1000, message = "接口地址不能超过{max}个字符")
    @Excel(name = "接口地址", width = 30d)
    @ApiModelProperty(value = "接口地址", required = true, position = 4)
    private String url;

    /**
     * 备注
     */
    @Length(max = 500, message = "备注不能超过{max}个字符")
    @Excel(name = "备注", width = 40d)
    @ApiModelProperty(value = "备注", position = 100)
    private String remark;
}